<tagLib name="html" />
<include file="Public:header" />
<script type="text/javascript">
	function updateUserInfo(){
		var old_psw = document.getElementById('id_old_psw');
		if(old_psw.value.length>0){
			var new_psw = document.getElementById('id_new_psw');
			var confirm_new_psw = document.getElementById('id_confirm_new_psw');
			if(new_psw.value.length==0){
				document.getElementById('id_p_error').innerHTML = '新密码不可为空，请输入新密码！';
				return false;
			}
			if (new_psw.value != confirm_new_psw.value){
				document.getElementById('id_p_error').innerHTML = '两次新密码不一致，请重新输入！';
				return false;
			}
		}
		document.getElementById('id_true_psw').value = md5(new_psw.value);
		document.getElementById('id_true_old_psw').value = md5(old_psw.value);
		document.getElementById('id_update_user_info_form').submit();
		return true;
	}
</script>
<div class="con_box right">
  <div class="u_content">
    <div class="con_tit"> 
      <ul class="left"><img src="../Public/images/jiao.gif"/></ul>
      <ul class="tit_bg">用户管理</ul> 
    </div>
    <div class="con_main left">          
           <div class="left con_admin">
            <div class=" state left" style="padding-top:15px;">
                 <li class="get" ><a href="http://{$_SERVER['HTTP_HOST']}/index.php/User/newUser?isNew=1" title="新建">新建用户</a></li> 
            </div>  
           </div>         
           <div class=" state left"> 
               <div class="order">
               <table class="order_list">
                 <tbody>                             
            	 <tr>       　               　　　　　　       　    　　      　               　　　        
                	<th width="5%">序号</th>
                    <th width="12%">用户名</th> 
                    <th width="12%">真实姓名　</th>
                    <th width="18%">E-mail</th>
                    <th width="20%">角色 </th>
                    <th width="8%">有效</th>
                    <th width="15%">修改时间</th>
                    <th width="10%">操作</th>
                 </tr>
                 <foreach name="users['users']" item="each_user">
                 	<tr >
	                    <td>{$each_user['user_id']}</td> 
	                   	<td>{$each_user['name']}</td>
	                	<td>{$each_user['true_name']}</td>
	                	<td>{$each_user['email']}</td>
	                    <td>{$each_user['role_string']}</td>
	                    <td>{$each_user['is_valid']}</td>
	                    <td>{$each_user['update_time']}</td>
	                    <td><a href="http://{$_SERVER['HTTP_HOST']}/index.php/User/getModifyUserInfo?uid={$each_user['user_id']}">修改</a></td>
	                 </tr> 
                 </foreach>       
                 </tbody>
               </table>               
               </div> 
           </div>
           <present name="users['page_array']">
           <div class="dig"><span class="left">{$users['page_step']}条/页&nbsp;&nbsp;共{$users['page_count']}页</span>
	           <foreach name="users['page_array']" item="page_each">
	           		<if condition="$page_each eq $users['current_page']">
	           			<a href="http://{$_SERVER['HTTP_HOST']}/index.php/User/getUsers/current_page/{$page_each}/page_step/{$users['page_step']}/page_count/{$users['page_count']}" style="color:red;">{$page_each}</a>
	           		<else/>
	           			<a href="http://{$_SERVER['HTTP_HOST']}/index.php/User/getUsers/current_page/{$page_each}/page_step/{$users['page_step']}/page_count/{$users['page_count']}">{$page_each}</a>
	           		</if>	           		
	           </foreach>           
			</div>
			</present>       
    </div>     
  </div>
</div>
<tagLib name="html" />
<include file="Public:foot" />